package com.niiwoo.civet.account.service.local;

import com.niiwoo.civet.account.dao.entity.WithdrawOrder;
import com.niiwoo.civet.account.dao.mapper.WithdrawOrderMapperExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

@Service
public class AccountWithdrawLocalService {
    @Autowired
    private WithdrawOrderMapperExt withdrawOrderMapperExt;

    public Byte selectWithdrawOrderStatusById(Long withdrawOrderId){
        WithdrawOrder order=withdrawOrderMapperExt.selectByPrimaryKey(withdrawOrderId);
        Assert.notNull(order,"提现订单不存在");
        return order.getStatus();
    }
}
